<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()	+ path + "/";
	request.setCharacterEncoding("UTF-8");
	response.setContentType("text/html;charset=UTF-8");
%>
<jsp:include page="changePwd.jsp" flush="true"/>
<script type="text/javascript">
	var ctx="<%=path%>";  
	
</script>
<link rel="stylesheet" href="<%=path%>/css/glsmcx.css" type="text/css" />
<link rel="stylesheet" href="<%=path%>/css/upload.css" type="text/css" >
<script type="text/javascript" src="<%=path%>/js/controllers/deliveryAddressCtrl.js"></script>
<div class="glsmcxWrap">
	<div class="container-fluid">
		<div class="panel panel-default">
			<div class="panel-heading">
				<h3 class="panel-title">地址管理</h3>
			</div>
			<input id="queryType" value="ht" style="display:none;"></input>
			<div class="panel-body clearfix">
				<form method="post" action="#" class="form-horizontal" role="form"> 
					<ul class="clearfix listwork">
						<li data-target=".modal-add" data-toggle="modal" class="add clearfix"><i></i>增加</li>
						<li class="del delete-batch clearfix" id="deleteMany"><i></i>删除</li>
					</ul>
					<div class="table-responsive">
						<table class="table table-bordered check left">
							<thead>
								<tr>
									<th> 
										<div class="checkbox">
									    	<label><input type="checkbox" class="all" /></label>
									    </div>
									</th>
									<th>序号</th>
									<th>联系人</th> 
									<th>联系方式</th> 
									<th>所在地区</th>  
									<th>详细地址</th>   
								    <th>创建时间</th>
								    <th>备注</th>  
									<th>操作</th>
								</tr>
							</thead>
		
							<tbody id="dataBody">
								 
							</tbody>
						</table>
						
						<table class="table2excel table table-bordered hide">
						</table>
					</div>
				</form>
			</div>
		</div>
		<div class="clearfix pageBottom">	
			<div class="record-wrapper page" role="status" aria-live="polite">
				当前<span class="pageNo"> </span>/<span class="totalPages"> </span>页，每页
				<label class="inline">
					<select name="dataTable_length" 
						class="form-control input-sm setTableLength" aria-controls="dataTable">
						<option selected="selected" value="10">10</option>
						<option value="20">20</option>
						<option value="50">50</option>
						<option value="100">100</option>
						<option value="200">200</option>
						<option value="300">300</option>
						<option value="400">400</option>
						<option value="500">500</option>
						<option value="1000">1000</option>
				</select> 
				</label>&nbsp;条记录,共<span class="record-wrapper totalCount">0</span>条记录
			</div>
			<nav>
			<!-- 这里显示分页 -->
				<div id="Pagination" class="pagination"></div>
			</nav>
		</div>
			
	</div>
</div>

	
<!-- 添加s -->
<div class="modal fade modal-add" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content"> 
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">
					<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
				</button>
				<h4 id="myModalLabel">新增寄回地址</h4>
			</div>
			<div class="modal-body">
				<form class="form-horizontal" novalidate="novalidate" id="addForm">

				<div class="form-group"> 
					 
					 <label class="col-sm-41 control-label">地区：</label>
					<div class="col-lg-61">
						<div class="input-group address-group">
								<div class="input-group-btn" role="group">
									<button style="width:100%" type="button" id="proMenu" class="btn btn-sm btn-default dropdown-toggle line" data-toggle="dropdown">
										<span class="option-name">选择省份</span> <span class="caret"></span>
									</button>
									<ul class="dropdown-menu" id="provinceQuery">
										  
									</ul>
								<input type="hidden" class="input-hidden input-sm" value="0" name="provinceId"> 
								</div>
								<div class="input-group-btn" role="group">
									<button style="width:100%" type="button" id="cityMenu" class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown">
										<span class="option-name">选择城市</span> <span class="caret"></span>
									</button>
									<ul class="dropdown-menu" id="cityQuery">
										 
									</ul>
									<input type="hidden" class="input-hidden input-sm" value="0" name="cityId"> 
								</div>
								<div class="input-group-btn" role="group">
									<button style="width:100%" type="button" id="distMenu" class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown">
										<span class="option-name">选择区域</span> <span class="caret"></span>
									</button>
									<ul class="dropdown-menu" id="countyQuery">
										 
									</ul>
									<input type="hidden" class="input-hidden input-sm" value="0" name="distId">  
								</div> 
								
								<input type="hidden" class="input-hidden input-sm form-control" placeholder="" name="pcdtName" id="receiverpcdt">
							</div> 
						</div>
				</div>  
				
				<div class="form-group">
					<div class="col-lg-61">
						<label class="col-sm-41 control-label">详细地址：</label>
						<div class="col-sm-81">
							<input type="text" name="address" class="form-control input-sm" placeholder="详细地址">
						</div>
					</div> 
				</div>
				
				<div class="form-group">
					<div class="col-lg-61">
						<label class="col-sm-41 control-label">联系人：</label>
						<div class="col-sm-81">
							<input type="text" name="contactName" class="form-control input-sm" placeholder="联系人">
						</div>
					</div> 
				</div>
				
				<div class="form-group">
					<div class="col-lg-61">
						<label class="col-sm-41 control-label">联系方式：</label>
						<div class="col-sm-81">
							<input type="text" name="contactPhone" class="form-control input-sm" placeholder="联系方式">
						</div>
					</div> 
				</div>
				
				<div class="form-group">
					<div class="col-lg-61">
						<label class="col-sm-41 control-label">备注：</label>
						<div class="col-sm-81">
							<input type="text" name="remark" class="form-control input-sm" placeholder="备注">
						</div>
					</div> 
				</div>
				
			</form> 
			</div>
			<div class="modal-footer">
				<span  class="errorMsg red"></span> 
				<button type="button" class="btn btn-primary" id="btn_add">保存</button>
				<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
			</div>	 
		</div>		
				
	</div>
			
</div>
<!-- 添加e -->

<!-- 修改s -->
<div class="modal fade modal-edit" tabindex="-1" role="dialog"
	aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">
					<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
				</button>
				<h4 id="myModalLabel">修改寄回地址</h4>
			</div>
			<div class="modal-body">
				<form class="form-horizontal" novalidate="novalidate" id="updateForm">

					<div class="form-group"> 
					 <input type=hidden name="id" />
					 <label class="col-sm-41 control-label">地区：</label>
					<div class="col-lg-61">
						<div class="input-group address-group">
								<div class="input-group-btn" role="group">
									<button style="width:100%" type="button" id="EditProMenu" class="btn btn-sm btn-default dropdown-toggle line" data-toggle="dropdown">
										<span class="option-name">选择省份</span> <span class="caret"></span>
									</button>
									<ul class="dropdown-menu" id="provinceUpdateQuery">
										  
									</ul>
								<input type="hidden" class="input-hidden input-sm" value="0" name="provinceId"> 
								</div>
								<div class="input-group-btn" role="group">
									<button style="width:100%" type="button" id="EditCityMenu" class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown">
										<span class="option-name">选择城市</span> <span class="caret"></span>
									</button>
									<ul class="dropdown-menu" id="cityUpdateQuery">
										 
									</ul>
									<input type="hidden" class="input-hidden input-sm" value="0" name="cityId"> 
								</div>
								<div class="input-group-btn" role="group">
									<button style="width:100%" type="button" id="EditDistMenu" class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown">
										<span class="option-name">选择区域</span> <span class="caret"></span>
									</button>
									<ul class="dropdown-menu" id="countyUpdateQuery">
										 
									</ul>
									<input type="hidden" class="input-hidden input-sm" value="0" name="distId">  
								</div>  
								<input type="hidden" class="input-hidden input-sm form-control" placeholder="" name="pcdtName" id="receiverpcdt">
							</div> 
						</div>
				</div>  
				
				<div class="form-group">
					<div class="col-lg-61">
						<label class="col-sm-41 control-label">详细地址：</label>
						<div class="col-sm-81">
							<input type="text" name="address" class="form-control input-sm" placeholder="详细地址">
						</div>
					</div> 
				</div>
				
				<div class="form-group">
					<div class="col-lg-61">
						<label class="col-sm-41 control-label">联系人：</label>
						<div class="col-sm-81">
							<input type="text" name="contactName" class="form-control input-sm" placeholder="联系人">
						</div>
					</div> 
				</div>
				
				<div class="form-group">
					<div class="col-lg-61">
						<label class="col-sm-41 control-label">联系方式：</label>
						<div class="col-sm-81">
							<input type="text" name="contactPhone" class="form-control input-sm" placeholder="联系方式">
						</div>
					</div> 
				</div>
				
				<div class="form-group">
					<div class="col-lg-61">
						<label class="col-sm-41 control-label">备注：</label>
						<div class="col-sm-81">
							<input type="text" name="remark" class="form-control input-sm" placeholder="备注">
						</div>
					</div> 
				</div>
				
				</form>
			</div>
			<div class="modal-footer">
				<span  class="errorMsg red updateMsg"></span>
				<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
				<button type="button" class="btn btn-primary" id="btn_update">保存</button>
			</div>
		</div>
	</div>
</div>
<!-- 修改e -->

